Skip to content

Conversation

@ecdatadog
Copy link
Contributor

@ecdatadog ecdatadog commented Jan 9, 2025

Spec : https://jsonapi.org/format/1.1/#document-resource-object-relationships
Allow some json+api document that have relationships to a same object but under differents relation key :

{
    "data": {
        "id": "1",
        "type": "articles",
        "attributes": {
            "title": "A"
        },
        "relationships": {
            "author": {
                "data": {
                    "id": "1",
                    "type": "author"
                }
            },
            "contact": {
                "data": {
                    "id": "1",
                    "type": "author"
                }
            },
            "comments": {
                "data": [
                    {
                        "id": "1",
                        "type": "comments"
                    }
                ]
            }
        }
    }
}

@zestze zestze merged commit 0d0bed5 into DataDog:main Jan 13, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants